/**
  * Copyright 2019 bejson.com 
  */
package com.xingkeduo.dto.transter.paydetail;

import com.xingkeduo.dto.ActivityDto;
import lombok.Data;
import org.apache.commons.lang.StringUtils;

@Data
public class Activity {

    private String id;
    private String name;


    public void covert(String activityType, ActivityDto activityDto) {
        if( StringUtils.isNotEmpty(activityType) && activityDto!=null){
            this.id= String.valueOf(activityDto.getActivityId());
            this.name=activityDto.getActivityName();
        }else {
            this.id="0";
            this.name="";
        }
    }
}